function controls(){
	 UP	=0;
	 DOWN=0;
	 R	=0;
	 L	=0;
	 ENTER =0;
	 Q = 0;
	 W = 0;
	 E = 0;
	

	$(document).keydown(function (e) {
		switch(e.which) {
			case 38: //UP
				UP = 1;
			break;
			
			case 39: //Right
				R = 1;
				break;
			
			case 40: //Down
				DOWN = 1;
			break;
			
			case 37: //left
				L = 1;
			break;
			
			case 13: //Enter	
				ENTER = 1;
			break;
			
			case 81: //Q				
				Q = 1;
			break;
			
			case 87: //W				
				W = 1;
			break;
			
			case 69: //E			
				E = 1;
			break;

		}
	});
	

$(document).keyup(function (e) {
	switch(e.which) {
		case 38: //UP
			UP = 0;
			break;
		case 39: //Right
			R = 0;
			break;
		case 40: // Down
			DOWN = 0;
			break;
		case 37: //left
			L = 0;
			break;
		case 13: //Enter				
			ENTER = 0;
		break;
	
		case 81: //Q	
			Q = 0;
		break
		
		case 87: //W				
			W = 0;
		break;
			
		case 69: //E			
			E = 0;
		break
	}
});
}